package com.sun.dao;

import com.sun.bean.Teacher;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TeacherDao {

Teacher getTeacherById(Integer id);

//根据条件查询
List<Teacher> getTeacherByCondition(Teacher teacher);
// 根据id集合查询每个id的teacher数据
List<Teacher> getTeacherByIdIn(@Param("ids") List<Integer> ids);

int updateTeacher(Teacher teacher);
}
